<?php

// 阿里云MQ配置
$rabbitmqConfig = [
    'RABBITMQ_HOST' => env('RABBITMQ_HOST', '127.0.0.1'),
    'RABBITMQ_PORT' => env('RABBITMQ_PORT', 5672),
    'RABBITMQ_VHOST' => env('RABBITMQ_VHOST', '/'),
    'RABBITMQ_LOGIN' => env('RABBITMQ_LOGIN', 'guest'),
    'RABBITMQ_PASSWORD' => env('RABBITMQ_PASSWORD', 'guest'),
];

$exchangeName = 'hypd_exchange';// 交换机名称

return [
    // 阿里云MQ配置
    'RABBITMQ_HOST' => $rabbitmqConfig['RABBITMQ_HOST'],
    'RABBITMQ_PORT' => $rabbitmqConfig['RABBITMQ_PORT'],
    'RABBITMQ_VHOST' => $rabbitmqConfig['RABBITMQ_VHOST'],
    'RABBITMQ_LOGIN' => $rabbitmqConfig['RABBITMQ_LOGIN'],
    'RABBITMQ_PASSWORD' => $rabbitmqConfig['RABBITMQ_PASSWORD'],

    // 队列路由
    'queueRoute' => [

        // 测试（不参与业务：测试使用，勿删）
        'global.test' => [
            'exchangeName' => $exchangeName,// 交换机名称
            'queueName' => 'test',// TODO 队列名称不为空会发到指定队列上，否则不发到队列上
            'routeKey' => [ // 路由主题键
                'global.test',
            ],
        ],

        'global.finance.recharge' => [ // 资产充值
            'exchangeName' => $exchangeName,
            'queueName' => '',
            'routeKey' => [
                'global.finance.recharge',
            ],
        ],

        'global.finance.diamond.change' => [ // 资产 钻石变更（增/减）
            'exchangeName' => $exchangeName,
            'queueName' => '',
            'routeKey' => [
                'global.finance.diamond.change',
            ],
        ],

        'global.gift.give' => [ // 赠送礼物
            'exchangeName' => $exchangeName,
            'queueName' => '',
            'routeKey' => [
                'global.gift.give',
            ],
        ],
        'global.backSendGift.give' => [ // 赠送礼物异步
            'exchangeName' => $exchangeName,
            'queueName' => '',
            'routeKey' => [
                'global.backSendGift.give',
            ],
        ],

        'global.activity' => [ // 活动通知
            'exchangeName' => $exchangeName,
            'queueName' => '',
            'routeKey' => [
                'global.activity',
            ],
        ],

        //用户认证完成
        'global.user.verify' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'user_verify',
            'routeKey' => [
                'global.user.verify',
            ],
        ],
        //房间停留
        'global.room.stay' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'room_stay_thirty',
            'routeKey' => [
                'global.room.stay',
            ],
        ] ,
        //房间榜单第一名更新消息
        'global.room.champion.update' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'champion_publish',
            'routeKey' => [
                'global.room.champion.update',
            ]
        ],
        //用户邀请关系确定
        'global.user.invite' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'kkaudio_user_invite',
            'routeKey' => [
                'global.user.invite',
            ],
        ],
        //埋点事件处理
        'global.burypoint' => [
            'exchangeName' => $exchangeName,
            'queueName' => '',
            'routeKey' => [
                'global.burypoint',
            ],
        ],
        //背包礼物批量赠送
        'global.giftbagbatch' => [
            'exchangeName' => $exchangeName,
            'queueName' => '',
            'routeKey' => [
                'global.giftbagbatch',
            ],
        ],
        'global.giftbagbatch.consumer' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'api_giftbagbatch',
            'routeKey' => [
                'global.giftbagbatch',
            ],
        ],
        //用户房间banner通知
        'global.userroombanner' => [
            'exchangeName' => $exchangeName,
            'queueName' => '',
            'routeKey' => [
                'global.userroombanner',
            ],
        ],
        'global.userroombanner.consumer' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'api_userroombanner',
            'routeKey' => [
                'global.userroombanner',
            ],
        ],
        //送礼物异步处理
        'global.sendgiftasyn' => [
            'exchangeName' => $exchangeName,
            'queueName' => '',
            'routeKey' => [
                'global.sendgiftasyn',
            ],
        ],
        'global.sendgiftasyn.wealthcharm' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'api_sendgiftasyn_wealthcharm',
            'routeKey' => [
                'global.sendgiftasyn',
            ],
        ],
        'global.sendgiftasyn.complex' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'api_sendgiftasyn_complex',
            'routeKey' => [
                'global.sendgiftasyn',
            ],
        ],
        'global.sendgiftasyn.game' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'api_sendgiftasyn_game',
            'routeKey' => [
                'global.sendgiftasyn',
            ],
        ],



        //异步处理送礼消费数据-财富值等业务
        'global.sendGiftMq.consumer' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'api_sendGiftMq',
            'routeKey' => [
                'global.backSendGift.give',
            ],
        ],
        //用户送出热度卡礼物消费
        'global.hotGiftCard' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'api_hotGiftCard',
            'routeKey' => [
                'global.gift.give',
            ],
        ],
        //拍拍房处理麦位变化通知
        'global.roompaipai' => [
            'exchangeName' => $exchangeName,
            'queueName' => '',
            'routeKey' => [
                'global.roompaipai',
            ],
        ],
        'global.roompaipai.consumer' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'api_roompaipai',
            'routeKey' => [
                'global.roompaipai',
            ],
        ],
        //新幸运礼物
        'global.newluckgift' => [
            'exchangeName' => $exchangeName,
            'queueName' => '',
            'routeKey' => [
                'global.newluckgift',
            ],
        ],
        'global.newluckgift.consumer' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'api_newluckgift',
            'routeKey' => [
                'global.newluckgift',
            ],
        ],
        //新幸运礼物公屏和礼物im
        'global.newluckgiftim' => [
            'exchangeName' => $exchangeName,
            'queueName' => '',
            'routeKey' => [
                'global.newluckgiftim',
            ],
        ],
        'global.newluckgiftim.consumer' => [
            'exchangeName' => $exchangeName,
            'queueName' => 'api_newluckgiftim',
            'routeKey' => [
                'global.newluckgiftim',
            ],
        ],
    ]
];
